// by: 陈同学
#include<iostream>
using namespace std;
int main()
{
  int findMax(int x,int y,int z=0);
  int a,b,c;
  cout<<"Please enter three int numbers:"<<endl;
  cin>>a>>b>>c;
  cout<<"The max of three is:"<<findMax(a,b,c)<<endl;
  cout<<"The max of two is:"<<findMax(a,b)<<endl;
}
int findMax(int x,int y,int z=0)
{
  if(y>x) x=y;
  if(z>x) x=z;
  return x;  
}